<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <script src="../jquery/jquery-3.2.1.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../css/bootstrap.css">

</head>
<body>

<div class="container">

    <button class="btn btn-primary" data-original-title="Popover弹出框" data-content="弹出框内容" data-toggle="popover" data-placement="right">
        right Popover
    </button>
    <br/>
    <h4>自定义弹出框</h4>
    <button class="btn btn-success" id="btn_popover">
        自定义弹出框
    </button>
</div>
</body>
<script>
    $(function(){
       $('[data-toggle="popover"]').popover("toggle");
       $("#btn_popover").popover({
           title:"自定义弹出框标题",
           placement:"bottom",
           content:"自定义弹出框内容"
       });
    })
</script>
</html>